package com.cmas.manage.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 社团申请对象 c_applay
 *
 * @author cmas
 * @date 2021-05-03
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("c_apply")
public class CApply implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * ID
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /**
     * 申请社团编号
     */
    private Long communityId;

    /**
     * 申请学生
     */
    private Long userId;

    /**
     * 申请时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date applyTime;

    /**
     * 申请状态
     */
    private String applyStatus;


    /**
     * 社团名称
     */
    @TableField(exist = false)
    private String cname;

    /**
     * 学生姓名
     */
    @TableField(exist = false)
    private String userName;

}
